import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

// 引入element组件
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'// 必须加这个依赖
import '@/assets/styles/common.css'
import '@/assets/iconfont/iconfont.css'
import '@/assets/iconfont1/iconfont.css'
import '@/assets/iconfont3/iconfont.css'
/* import WebSocket from '@/utils/websocket' */
import WebSocketPlugin from '@/utils/WebSockets'
// hidden
import '@/utils/removeAriaHidden'
Vue.config.productionTip = false
Vue.use(ElementUI)
/* Vue.use(WebSocket, {
  url: 'ws://localhost:8080/ws/'
}) */

/* Vue.use(WebSocketPlugin, { url: 'ws://localhost:8080/ws/' }) */
Vue.use(WebSocketPlugin, { url: 'ws://localhost:8080/ws/' })

new Vue({

  router,
  store,

  render: h => h(App)
}).$mount('#app')
